package com.example.zwgt.yrfk.ui.risk.activity;


import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.example.zwgt.yrfk.R;
import com.example.zwgt.yrfk.base.mvpbase.BasePresenter;
import com.example.zwgt.yrfk.base.mvpbase.baseImpl.BaseActivity;
import com.example.zwgt.yrfk.ui.risk.adapter.IndexDetailsAdapter;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;
import butterknife.OnClick;

public class IndexDetailsActivity extends BaseActivity {

    @BindView(R.id.iv_back)
    ImageView ivBack;
    @BindView(R.id.tv_save)
    TextView tvSave;
    @BindView(R.id.rl_top)
    RelativeLayout rlTop;
    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.tv_text)
    TextView tvText;
    @BindView(R.id.rv_detalis_list)
    RecyclerView rvDetalisList;
    private IndexDetailsAdapter adapter;
    private List<String>data=new ArrayList<>();
    @Override
    public int getLayoutId() {
        return R.layout.activity_index_details;
    }

    @Override
    public BasePresenter initPresenter() {
        return null;
    }
    @Override
    protected void initViews() {
        data.add("年龄:");
        data.add("学历:");
        data.add("住宅情况:");
        data.add("婚姻状况:");
        data.add("工作单位:");
        data.add("职务层级:");
        data.add("年龄:");
       rvDetalisList.setLayoutManager(new LinearLayoutManager(this));
       adapter=new IndexDetailsAdapter(data);
       rvDetalisList.setAdapter(adapter);

    }


    @OnClick({R.id.iv_back, R.id.tv_save})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.iv_back:
                finish();
                break;
            case R.id.tv_save:
                saveData();
                break;
        }
    }

    private void saveData() {
    }
}
